<h1><?php echo $contents->category->name; ?></h1>
<table class="list">
	<tr>
		<th>หัวข้อ</th>
		<th width="90"><a class="btn" href="organizations/admin/organizations/form?agency_id=<?php echo @$_GET['agency_id']; ?>">เพิ่มรายการ</a></th>
	</tr>
	<?php foreach($contents as $content): ?>
	<tr>
		<td><?php echo $content->title; ?></td>
		<td>
			<a class="btn" href="organizations/admin/organizations/form/<?php echo $content->id?>/?agency_id=<?php echo @$_GET['agency_id']; ?>" >แก้ไข</a>
			<a class="btn" href="organizations/admin/organizations/delete/<?php echo $content->id?>/?agency_id=<?php echo @$_GET['agency_id']; ?>" onclick="return confirm('ยืนยันการลบ')">ลบ</a>
		</td>
	</tr>
	<?php endforeach; ?>
</table>
<?php echo $contents->pagination(); ?>
